﻿<%@ Page Title="类型信息" Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
    CodeBehind="SortofMonth.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportSort.CompanyofMonth" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<%@ Register src="../../Common/SortControls.ascx" tagname="SortControls" tagprefix="uc3" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">类别信息</a></li>
            <%--             <li><a href="ReportOfDurgFirstLevel.aspx">药品类别初始界面</a></li>
             <li><a href="ReportSortInfo.aspx">药品类别</a></li>--%>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    类别名称：
                </td>
                <td align="left">
                  <uc3:SortControls ID="SortControls1" runat="server" />
                </td>
                <td width="100px">
                    &nbsp;</td>
                <td>
                                排序字段：
                            </td>
                            <td align=left>
                                <asp:DropDownList ID="droSortField" runat="server" Height="20px" Width="146px">
                                    <asp:ListItem Value="PurchaseCountTotal asc">采购总数量 升序</asp:ListItem> <asp:ListItem Value="PurchaseCountTotal desc">采购总数量 降序</asp:ListItem>
                                    <asp:ListItem Value="PurchaseAmountTotal asc">采购总金额 升序</asp:ListItem><asp:ListItem Value="PurchaseAmountTotal desc">采购总金额 降序</asp:ListItem>
                                    <asp:ListItem Value="WareHouseCountTotal asc">入库总数量 升序</asp:ListItem><asp:ListItem Value="WareHouseCountTotal desc">入库总数量 降序</asp:ListItem>
                                    <asp:ListItem Value="WareHouseAmountTotal asc">入库总金额 升序</asp:ListItem><asp:ListItem Value="WareHouseAmountTotal desc">入库总金额 降序</asp:ListItem>
                                    <%--<asp:ListItem Value="WareHouseRate asc">入库率 升序</asp:ListItem><asp:ListItem Value="WareHouseRate desc">入库率 降序</asp:ListItem>--%>
                                </asp:DropDownList>
                            </td>
                              <td>
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" />
                            </td>
            </tr>
        </table>
    </div>
    <div style="text-align:center">
        <asp:Label ID="lblNull" runat="server" Text="无查询数据" Visible=false/>
    </div>
    <asp:GridView ID="gvwSortInfo" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的信息！" OnRowCreated="gvwSortInfo_RowCreated" OnRowDataBound="gvwSortInfo_RowDataBound"
        OnRowCommand="gvwSortInfo_RowCommand">
        <Columns>
            <asp:BoundField HeaderText="类别" DataField="sortname" />
            <asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("SortSource"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购总金额" ReadOnly="True" />
            <asp:BoundField DataField="PurchaseCountTotal" HeaderText="采购总数量" ReadOnly="True" />
            <asp:BoundField DataField="WareHouseAmountTotal" HeaderText="入库总金额" ReadOnly="True" />
            <asp:BoundField DataField="WareHouseCountTotal" HeaderText="入库总数量" ReadOnly="True" />
            <asp:BoundField DataField="WareHouseRate" HeaderText="入库率" ReadOnly="True" DataFormatString="{0:P}" />
            <asp:TemplateField HeaderText="操作">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:LinkButton ID="lbnDetail" runat="server" CommandName="DirectByDetail" CommandArgument='<%# Eval("sortname")%>'>详情</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
